package org.example.c1;

import lombok.extern.slf4j.Slf4j;

/**
 * @author liu-rui
 * @date 2020/5/27 上午10:51
 * @description 演示线程创建：采用组合方式
 * @since
 */
@Slf4j
public class Demo6 {
    public static void main(String[] args) {
        new Thread(new Worker()).start();
    }

    static class Worker implements Runnable {
        @Override
        public void run() {
            log.info("开始干活了");
        }
    }
}
